#ifndef CMD_PARSER_H
#define CMD_PARSER_H

#include "instructionSet.h"

typedef struct {
	char name[MAX_LABEL_LENGTH];
	int address;
} Label;

extern char jumpToLabel[MAX_LABEL_LENGTH];
extern int isHalt;
extern int (*instructionPtr[]) (Command * cmd);

Label * labels;
int labels_count;

Command * commands;
int cmd_count;

int loadCmdFile(char * filepath);
void printLabelsArr();
int findLabel(char * label);
int printArgv(int address, FILE * target);
int init_commands();
#endif